package com.zyzy.leftfourdead.bean;

import java.util.List;

/**
 * Created by loverforever on 2016/8/24.
 * 抽奖团 Bean
 */
public class PrizeBean {

    /**
     * msg :
     * banners : [{"wechat_show":0,"name":"早酥梨","app_show":1,"link":"P-TG-hb-lyscrcjd-1h","path":"http://missfresh-asvip-production-common.ufile.ucloud.com.cn/entrance_images/D6B83C32B22186B825578D16D285BA27.JPG","type":"GROUPBUYDETAIL"},{"wechat_show":0,"name":"中奖名单","app_show":1,"link":"http://missfresh-asvip-production-h5.ufile.ucloud.com.cn/h5_file/DE1841C5AD5260FC632B382AD244B01F/index.html","path":"http://missfresh-asvip-production-common.ufile.ucloud.com.cn/entrance_images/D7A54B0EBAA879BB6F530A1385BF08D4.JPG","type":"URL"}]
     * code : 0
     * products : [{"sku":"zerogroup_100ycz","buy_permission":0,"subtitle":"0元抽大奖，每天必有一个中奖","name":"100元储值卡","ordering":0,"country":"每日优鲜","price":20000,"like_number":0,"market_price":20000,"product_chrome":1,"vip_price":10000,"sell_out":0,"sales_volume":"4645","images":{"list":"http://missfresh-asvip-production-common.ufile.ucloud.com.cn/product_images/FDCD0E1648F7CBE17F4D54AA85B0B37B.JPG"},"type_tag":"group","product_tag_name":null,"stock":999,"event":{"group_price":0,"internal_id":"zerogroup_100ycz","start_time":"2016-08-10 15:31:26","product_limit":999,"owner_discount_price":0,"new_user_only":0,"limit":1,"end_time":"2017-01-31 23:55:26","group_limit":10,"active":1,"event_active":1,"type":"GROUP PURCHASE","real_product_limit":0,"group_type":"ZERO"},"unit":"1张","event_type":"GROUP PURCHASE"}]
     */

    private String msg;
    private int code;
    /**
     * wechat_show : 0
     * name : 早酥梨
     * app_show : 1
     * link : P-TG-hb-lyscrcjd-1h
     * path : http://missfresh-asvip-production-common.ufile.ucloud.com.cn/entrance_images/D6B83C32B22186B825578D16D285BA27.JPG
     * type : GROUPBUYDETAIL
     */

    private List<BannersBean> banners;
    /**
     * sku : zerogroup_100ycz
     * buy_permission : 0
     * subtitle : 0元抽大奖，每天必有一个中奖
     * name : 100元储值卡
     * ordering : 0
     * country : 每日优鲜
     * price : 20000
     * like_number : 0
     * market_price : 20000
     * product_chrome : 1
     * vip_price : 10000
     * sell_out : 0
     * sales_volume : 4645
     * images : {"list":"http://missfresh-asvip-production-common.ufile.ucloud.com.cn/product_images/FDCD0E1648F7CBE17F4D54AA85B0B37B.JPG"}
     * type_tag : group
     * product_tag_name : null
     * stock : 999
     * event : {"group_price":0,"internal_id":"zerogroup_100ycz","start_time":"2016-08-10 15:31:26","product_limit":999,"owner_discount_price":0,"new_user_only":0,"limit":1,"end_time":"2017-01-31 23:55:26","group_limit":10,"active":1,"event_active":1,"type":"GROUP PURCHASE","real_product_limit":0,"group_type":"ZERO"}
     * unit : 1张
     * event_type : GROUP PURCHASE
     */

    private List<ProductsBean> products;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public List<BannersBean> getBanners() {
        return banners;
    }

    public void setBanners(List<BannersBean> banners) {
        this.banners = banners;
    }

    public List<ProductsBean> getProducts() {
        return products;
    }

    public void setProducts(List<ProductsBean> products) {
        this.products = products;
    }

    public static class BannersBean {
        private int wechat_show;
        private String name;
        private int app_show;
        private String link;
        private String path;
        private String type;

        public int getWechat_show() {
            return wechat_show;
        }

        public void setWechat_show(int wechat_show) {
            this.wechat_show = wechat_show;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getApp_show() {
            return app_show;
        }

        public void setApp_show(int app_show) {
            this.app_show = app_show;
        }

        public String getLink() {
            return link;
        }

        public void setLink(String link) {
            this.link = link;
        }

        public String getPath() {
            return path;
        }

        public void setPath(String path) {
            this.path = path;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }

    public static class ProductsBean {
        private String sku;
        private int buy_permission;
        private String subtitle;
        private String name;
        private int ordering;
        private String country;
        private int price;
        private int like_number;
        private int market_price;
        private int product_chrome;
        private int vip_price;
        private int sell_out;
        private String sales_volume;
        /**
         * list : http://missfresh-asvip-production-common.ufile.ucloud.com.cn/product_images/FDCD0E1648F7CBE17F4D54AA85B0B37B.JPG
         */

        private ImagesBean images;
        private String type_tag;
        private Object product_tag_name;
        private int stock;
        /**
         * group_price : 0
         * internal_id : zerogroup_100ycz
         * start_time : 2016-08-10 15:31:26
         * product_limit : 999
         * owner_discount_price : 0
         * new_user_only : 0
         * limit : 1
         * end_time : 2017-01-31 23:55:26
         * group_limit : 10
         * active : 1
         * event_active : 1
         * type : GROUP PURCHASE
         * real_product_limit : 0
         * group_type : ZERO
         */

        private EventBean event;
        private String unit;
        private String event_type;

        public String getSku() {
            return sku;
        }

        public void setSku(String sku) {
            this.sku = sku;
        }

        public int getBuy_permission() {
            return buy_permission;
        }

        public void setBuy_permission(int buy_permission) {
            this.buy_permission = buy_permission;
        }

        public String getSubtitle() {
            return subtitle;
        }

        public void setSubtitle(String subtitle) {
            this.subtitle = subtitle;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getOrdering() {
            return ordering;
        }

        public void setOrdering(int ordering) {
            this.ordering = ordering;
        }

        public String getCountry() {
            return country;
        }

        public void setCountry(String country) {
            this.country = country;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public int getLike_number() {
            return like_number;
        }

        public void setLike_number(int like_number) {
            this.like_number = like_number;
        }

        public int getMarket_price() {
            return market_price;
        }

        public void setMarket_price(int market_price) {
            this.market_price = market_price;
        }

        public int getProduct_chrome() {
            return product_chrome;
        }

        public void setProduct_chrome(int product_chrome) {
            this.product_chrome = product_chrome;
        }

        public int getVip_price() {
            return vip_price;
        }

        public void setVip_price(int vip_price) {
            this.vip_price = vip_price;
        }

        public int getSell_out() {
            return sell_out;
        }

        public void setSell_out(int sell_out) {
            this.sell_out = sell_out;
        }

        public String getSales_volume() {
            return sales_volume;
        }

        public void setSales_volume(String sales_volume) {
            this.sales_volume = sales_volume;
        }

        public ImagesBean getImages() {
            return images;
        }

        public void setImages(ImagesBean images) {
            this.images = images;
        }

        public String getType_tag() {
            return type_tag;
        }

        public void setType_tag(String type_tag) {
            this.type_tag = type_tag;
        }

        public Object getProduct_tag_name() {
            return product_tag_name;
        }

        public void setProduct_tag_name(Object product_tag_name) {
            this.product_tag_name = product_tag_name;
        }

        public int getStock() {
            return stock;
        }

        public void setStock(int stock) {
            this.stock = stock;
        }

        public EventBean getEvent() {
            return event;
        }

        public void setEvent(EventBean event) {
            this.event = event;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }

        public String getEvent_type() {
            return event_type;
        }

        public void setEvent_type(String event_type) {
            this.event_type = event_type;
        }

        public static class ImagesBean {
            private String list;

            public String getList() {
                return list;
            }

            public void setList(String list) {
                this.list = list;
            }
        }

        public static class EventBean {
            private int group_price;
            private String internal_id;
            private String start_time;
            private int product_limit;
            private int owner_discount_price;
            private int new_user_only;
            private int limit;
            private String end_time;
            private int group_limit;
            private int active;
            private int event_active;
            private String type;
            private int real_product_limit;
            private String group_type;

            public int getGroup_price() {
                return group_price;
            }

            public void setGroup_price(int group_price) {
                this.group_price = group_price;
            }

            public String getInternal_id() {
                return internal_id;
            }

            public void setInternal_id(String internal_id) {
                this.internal_id = internal_id;
            }

            public String getStart_time() {
                return start_time;
            }

            public void setStart_time(String start_time) {
                this.start_time = start_time;
            }

            public int getProduct_limit() {
                return product_limit;
            }

            public void setProduct_limit(int product_limit) {
                this.product_limit = product_limit;
            }

            public int getOwner_discount_price() {
                return owner_discount_price;
            }

            public void setOwner_discount_price(int owner_discount_price) {
                this.owner_discount_price = owner_discount_price;
            }

            public int getNew_user_only() {
                return new_user_only;
            }

            public void setNew_user_only(int new_user_only) {
                this.new_user_only = new_user_only;
            }

            public int getLimit() {
                return limit;
            }

            public void setLimit(int limit) {
                this.limit = limit;
            }

            public String getEnd_time() {
                return end_time;
            }

            public void setEnd_time(String end_time) {
                this.end_time = end_time;
            }

            public int getGroup_limit() {
                return group_limit;
            }

            public void setGroup_limit(int group_limit) {
                this.group_limit = group_limit;
            }

            public int getActive() {
                return active;
            }

            public void setActive(int active) {
                this.active = active;
            }

            public int getEvent_active() {
                return event_active;
            }

            public void setEvent_active(int event_active) {
                this.event_active = event_active;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public int getReal_product_limit() {
                return real_product_limit;
            }

            public void setReal_product_limit(int real_product_limit) {
                this.real_product_limit = real_product_limit;
            }

            public String getGroup_type() {
                return group_type;
            }

            public void setGroup_type(String group_type) {
                this.group_type = group_type;
            }
        }
    }
}
